package com.hsj.controller;

import com.hsj.service.OrderServiceImplUseRestTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 使用   restTemplate 来进行服务间的调用
 * @return
 */
@RestController
public class OrderControllerUseRestTemplate {

    @Autowired
    private OrderServiceImplUseRestTemplate orderService;

    @RequestMapping("/getorder")
    public String getOrder(){
        return  orderService.getOrder();
    }

}
